package com.irdstudio.efp.e4a.service.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.irdstudio.efp.e4a.service.domain.SDataPers;
import com.irdstudio.efp.e4a.service.domain.SRoleDataRule;

/**
 * <p>
 * DAO interface:系统角色对应数据资源权限表
 * <p>
 * 
 * @author fuzm
 * @date 2018-05-03
 */
public interface SRoleDataRuleDao {
	/**
	 * 
	 * @param dataPersId
	 *            数据权限ID
	 * @param roleCodes
	 *            角色码列表
	 * @return
	 */
	public Map getDataRuleType(@Param("dataPersId") String dataPersId, @Param("strls") String strls);

	public Map getDataRuleTypeTemp(@Param("dataPersId") String dataPersId, @Param("strls") String strls);

	public int insertSRoleDataRule(SRoleDataRule sRoleDataRule);

	public int deleteRoleByPk(SRoleDataRule sRoleDataRule);

	public int updateRoleByPk(SRoleDataRule sRoleDataRule);

	public SRoleDataRule queryRoleByPk(SRoleDataRule sRoleDataRule);

	public List<SRoleDataRule> queryAllRoleOwnerByPage(SRoleDataRule sRoleDataRule);

	public List<SRoleDataRule> queryAllRoleCurrOrgByPage(SRoleDataRule sRoleDataRule);

	public List<SRoleDataRule> queryAllRoleCurrDownOrgByPage(SRoleDataRule sRoleDataRule);

	// 系统数据权限配置接口
	public int insertSDataPers(SDataPers sDataPers);

	public int deleteDataByPk(SDataPers sDataPers);

	public int updateDataByPk(SDataPers sDataPers);

	public SDataPers queryDataByPk(SDataPers sDataPers);

	public List<SDataPers> queryAllDataOwnerByPage(SDataPers sDataPers);

	public List<SDataPers> queryAllDataCurrOrgByPage(SDataPers sDataPers);

	public List<SDataPers> queryAllDataCurrDownOrgByPage(SDataPers sDataPers);

}